
// src/store/index.ts文件内容
import { createStore } from "vuex";

export default createStore({
    state: {
        counter: 0,
    },
    mutations: {
        add(state) {
            state.counter--
        }
    }
});